package com.ly.mpayment.persist.service.callorder;

import com.ly.mpayment.persist.entity.CardOrder;
import com.ly.mpayment.persist.hibernate.Page;

import java.util.List;
import java.util.Map;

public interface ICardOrderService {

    public boolean saveOrder(CardOrder cardOrder);

    public boolean updateOrder(CardOrder cardOrder);

    public CardOrder findById(String id);

    public Page<CardOrder> findPage(Map<String, Object> parameters , int start, int pageSize);

    /**
     * 导入
     * @param cardOrderList
     * @return
     */
    public String importOrder(List<CardOrder> cardOrderList);

    /**
     * 导出
     * @param parameters
     * @return
     */
    public String exportOrder(Map<String, Object> parameters);

    boolean deleteById(String id);

    Page<CardOrder> updateExportCallOrder(Map<String, Object> parameters, int start, int pageSize,String type);

}
